<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sbl.bajw.pc.model.CameraHouseModel"%>
<%@page import="com.sbl.bajw.pc.model.CameraModel"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/prama.jsp" %>
<%
List<HashMap<String,String>> pics = (List<HashMap<String,String>>)request.getAttribute("pics");
    CameraHouseModel model = (CameraHouseModel)request.getAttribute("model");
    String installDate = "";
    if(model.getInstallDate() != null){
    	SimpleDateFormat df = new SimpleDateFormat("yyyy-M-dd");
    	installDate = df.format(model.getInstallDate());
    }
%>
<div class="CommonPanel" id="msg_search_div">
	<input type="hidden" id="model_id" value="${model.id }"/>
	<table style="float:left;">
		<tr>
			<td class="label">名称:</td>
			<td class="input">
				${model.name }
			</td>
			<td class="label">派出所:</td>
			<td class="input">
				${model.policeStationName }
			</td>
			<td class="label">社区:</td>
			<td class="input">
				${model.communityName }
			</td>
			<td class="label">审核人:</td>
			<td class="input">
				${model.auditname }
			</td>
		</tr>
		<tr>
			<td class="label">安装时间:</td>
			<td class="input">
				<%=installDate %>
			</td>
			<td class="label">监控员持岗上岗人数:</td>
			<td class="input">
				${model.watchManNum }
			</td>
		</tr>
		<tr>
			<td class="label">负责人:</td>
			<td class="input">
				${model.chargeMan }
			</td>
			<td class="label">联系电话:</td>
			<td class="input">
				${model.phone }
			</td>
			<td class="label">摄像头数量:</td>
			<td class="input">
				${model.cameraNum }
			</td>
			<td class="label">审核时间:</td>
			<td class="input">
				${model.audittime }
			</td>
		</tr>
		<tr>
			<td class="label">采集人:</td>
			<td class="input">
				${model.creatername }
			</td>
			<td class="label">创建时间:</td>
			<td class="input">
				${model.createTime }
			</td>
			<td class="label">审核结果</td>
			<td class="input">
				<%
					if(model.getIsQuelity().equals("1")){ 
				%>
				审核通过
				<%
					}else if(model.getIsQuelity().equals("-1")){ 
				%>
				审核未通过
				<%
					}else{ 
				%>
				未审核
				<%
					}
				%>
			</td>
			<td class="label">原因:</td>
			<td class="input">
				${model.reason }
			</td>
		</tr>
	</table>
	<div style="float:left;width:600px;height:200px;overflow: hidden;position: relative;">
		<div id="picContentDiv" style="width:<%=200*pics.size()%>px;position: absolute;left:0">
		<%
			for(int i = 0 ;i<pics.size();i++){
				String imgUrl = BaseUrl +"/"+ pics.get(i).get("SMALLIMGURL");
			%>
			<img width="200" style="float:left" src="<%=imgUrl%>"/>
			
			<%
			}
		%>
		</div>
		<div id="preBtn" style="position: absolute;left: 0;top: 50%;cursor: pointer;"><<</div>
		<div id="nextBtn" style="position: absolute;right: 0;top: 50%;cursor: pointer;">>></div>
	</div>
	<input id="lat" type="hidden" value="${model.lat }"/>
	<input id="lon" type="hidden" value="${model.lon }"/>
	
</div>